﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Util;
using Model;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace BLL
{
  public  class BllNewstype:Bll<tb_newstype>
    {
       public BllNewstype() { }
		public BllNewstype(Page _page) : base(_page) { }
        public BllNewstype(Dal<tb_newstype> _dal) : base(_dal) { }
        public BllNewstype(Page _page, Dal<tb_newstype> _dal) : base(_page, _dal) { }

        public override bool Check(tb_newstype entity)
		{
			return true;
		}
        public virtual void InitDdl(ListControl ctl)
        {
            ctl.Items.Add(new ListItem("----全部----", "0"));
            foreach (var item in GetList(c => true))
            {
                ctl.Items.Add(new ListItem(item.name, item.id.ToString()));
            }
        }
    }
}
